package nowcoder.hw.hj03;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main1 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader= new BufferedReader(new InputStreamReader(System.in));
        String input =null;
        while ((input=reader.readLine())!=null){
            int cnt =Integer.valueOf(input);
            boolean[]arr=new boolean[501];
            for (;cnt>0;cnt--) {
                arr[Integer.valueOf(reader.readLine())]=true;
            }
            StringBuilder sb = new StringBuilder();
            for (int i = 0;i<arr.length; i++) {
                if (arr[i]){
                    sb.append(i).append("\n");
                }
            }
            sb.deleteCharAt(arr.length-1);
            System.out.println(sb.toString());
        }
    }
}